Lens sensing